xen: credit1: treat pCPUs more evenly during balancing.
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 7 Apr 2017 16:57:14 +0000 (18:57 +0200)
committerGeorge Dunlap <george.dunlap@citrix.com>
Fri, 7 Apr 2017 17:17:39 +0000 (18:17 +0100)
commit89216c7999eb5b8558bfac7d61ae0d5ab844ce3f
tree98df74c6d36acf94c680a444144605df16a0ea73
parent341450eaf7534220e67529eb62213edbddb84cae
xen: credit1: treat pCPUs more evenly during balancing.

Right now, we use cpumask_first() for going through
the bus pCPUs in csched_load_balance(). This means
not all pCPUs have equal chances of seeing their
pending work stolen. It also means there is more
runqueue lock pressure on lower ID pCPUs.

To avoid all this, let's record and remember, for
each NUMA node, from what pCPU we have stolen for
last, and start from that the following time.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit.c